﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000227 RID: 551
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueEnterCellScRsp : IMessage<ChessRogueEnterCellScRsp>, IMessage, IEquatable<ChessRogueEnterCellScRsp>, IDeepCloneable<ChessRogueEnterCellScRsp>, IBufferMessage
	{
		// Token: 0x17000733 RID: 1843
		// (get) Token: 0x060018A3 RID: 6307 RVA: 0x000464F7 File Offset: 0x000446F7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueEnterCellScRsp> Parser
		{
			get
			{
				return ChessRogueEnterCellScRsp._parser;
			}
		}

		// Token: 0x17000734 RID: 1844
		// (get) Token: 0x060018A4 RID: 6308 RVA: 0x000464FE File Offset: 0x000446FE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueEnterCellScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000735 RID: 1845
		// (get) Token: 0x060018A5 RID: 6309 RVA: 0x00046510 File Offset: 0x00044710
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueEnterCellScRsp.Descriptor;
			}
		}

		// Token: 0x060018A6 RID: 6310 RVA: 0x00046517 File Offset: 0x00044717
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueEnterCellScRsp()
		{
		}

		// Token: 0x060018A7 RID: 6311 RVA: 0x00046520 File Offset: 0x00044720
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueEnterCellScRsp(ChessRogueEnterCellScRsp other) : this()
		{
			this.cellId_ = other.cellId_;
			this.retcode_ = other.retcode_;
			this.rogueCurrentInfo_ = ((other.rogueCurrentInfo_ != null) ? other.rogueCurrentInfo_.Clone() : null);
			this.stageInfo_ = ((other.stageInfo_ != null) ? other.stageInfo_.Clone() : null);
			this.info_ = ((other.info_ != null) ? other.info_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060018A8 RID: 6312 RVA: 0x000465B0 File Offset: 0x000447B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueEnterCellScRsp Clone()
		{
			return new ChessRogueEnterCellScRsp(this);
		}

		// Token: 0x17000736 RID: 1846
		// (get) Token: 0x060018A9 RID: 6313 RVA: 0x000465B8 File Offset: 0x000447B8
		// (set) Token: 0x060018AA RID: 6314 RVA: 0x000465C0 File Offset: 0x000447C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CellId
		{
			get
			{
				return this.cellId_;
			}
			set
			{
				this.cellId_ = value;
			}
		}

		// Token: 0x17000737 RID: 1847
		// (get) Token: 0x060018AB RID: 6315 RVA: 0x000465C9 File Offset: 0x000447C9
		// (set) Token: 0x060018AC RID: 6316 RVA: 0x000465D1 File Offset: 0x000447D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17000738 RID: 1848
		// (get) Token: 0x060018AD RID: 6317 RVA: 0x000465DA File Offset: 0x000447DA
		// (set) Token: 0x060018AE RID: 6318 RVA: 0x000465E2 File Offset: 0x000447E2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueCurrentInfo RogueCurrentInfo
		{
			get
			{
				return this.rogueCurrentInfo_;
			}
			set
			{
				this.rogueCurrentInfo_ = value;
			}
		}

		// Token: 0x17000739 RID: 1849
		// (get) Token: 0x060018AF RID: 6319 RVA: 0x000465EB File Offset: 0x000447EB
		// (set) Token: 0x060018B0 RID: 6320 RVA: 0x000465F3 File Offset: 0x000447F3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueInfo StageInfo
		{
			get
			{
				return this.stageInfo_;
			}
			set
			{
				this.stageInfo_ = value;
			}
		}

		// Token: 0x1700073A RID: 1850
		// (get) Token: 0x060018B1 RID: 6321 RVA: 0x000465FC File Offset: 0x000447FC
		// (set) Token: 0x060018B2 RID: 6322 RVA: 0x00046604 File Offset: 0x00044804
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueGameInfo Info
		{
			get
			{
				return this.info_;
			}
			set
			{
				this.info_ = value;
			}
		}

		// Token: 0x060018B3 RID: 6323 RVA: 0x0004660D File Offset: 0x0004480D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueEnterCellScRsp);
		}

		// Token: 0x060018B4 RID: 6324 RVA: 0x0004661C File Offset: 0x0004481C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueEnterCellScRsp other)
		{
			return other != null && (other == this || (this.CellId == other.CellId && this.Retcode == other.Retcode && object.Equals(this.RogueCurrentInfo, other.RogueCurrentInfo) && object.Equals(this.StageInfo, other.StageInfo) && object.Equals(this.Info, other.Info) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060018B5 RID: 6325 RVA: 0x000466A4 File Offset: 0x000448A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.CellId != 0U)
			{
				num ^= this.CellId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.rogueCurrentInfo_ != null)
			{
				num ^= this.RogueCurrentInfo.GetHashCode();
			}
			if (this.stageInfo_ != null)
			{
				num ^= this.StageInfo.GetHashCode();
			}
			if (this.info_ != null)
			{
				num ^= this.Info.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060018B6 RID: 6326 RVA: 0x0004673E File Offset: 0x0004493E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060018B7 RID: 6327 RVA: 0x00046746 File Offset: 0x00044946
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060018B8 RID: 6328 RVA: 0x00046750 File Offset: 0x00044950
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Retcode);
			}
			if (this.CellId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.CellId);
			}
			if (this.info_ != null)
			{
				output.WriteRawTag(66);
				output.WriteMessage(this.Info);
			}
			if (this.rogueCurrentInfo_ != null)
			{
				output.WriteRawTag(74);
				output.WriteMessage(this.RogueCurrentInfo);
			}
			if (this.stageInfo_ != null)
			{
				output.WriteRawTag(90);
				output.WriteMessage(this.StageInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060018B9 RID: 6329 RVA: 0x000467FC File Offset: 0x000449FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.CellId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CellId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.rogueCurrentInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueCurrentInfo);
			}
			if (this.stageInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.StageInfo);
			}
			if (this.info_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Info);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060018BA RID: 6330 RVA: 0x0004689C File Offset: 0x00044A9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueEnterCellScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.CellId != 0U)
			{
				this.CellId = other.CellId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.rogueCurrentInfo_ != null)
			{
				if (this.rogueCurrentInfo_ == null)
				{
					this.RogueCurrentInfo = new ChessRogueCurrentInfo();
				}
				this.RogueCurrentInfo.MergeFrom(other.RogueCurrentInfo);
			}
			if (other.stageInfo_ != null)
			{
				if (this.stageInfo_ == null)
				{
					this.StageInfo = new ChessRogueInfo();
				}
				this.StageInfo.MergeFrom(other.StageInfo);
			}
			if (other.info_ != null)
			{
				if (this.info_ == null)
				{
					this.Info = new ChessRogueGameInfo();
				}
				this.Info.MergeFrom(other.Info);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060018BB RID: 6331 RVA: 0x00046970 File Offset: 0x00044B70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060018BC RID: 6332 RVA: 0x0004697C File Offset: 0x00044B7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 56U)
				{
					if (num == 8U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 56U)
					{
						this.CellId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 66U)
					{
						if (this.info_ == null)
						{
							this.Info = new ChessRogueGameInfo();
						}
						input.ReadMessage(this.Info);
						continue;
					}
					if (num == 74U)
					{
						if (this.rogueCurrentInfo_ == null)
						{
							this.RogueCurrentInfo = new ChessRogueCurrentInfo();
						}
						input.ReadMessage(this.RogueCurrentInfo);
						continue;
					}
					if (num == 90U)
					{
						if (this.stageInfo_ == null)
						{
							this.StageInfo = new ChessRogueInfo();
						}
						input.ReadMessage(this.StageInfo);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04000A47 RID: 2631
		private static readonly MessageParser<ChessRogueEnterCellScRsp> _parser = new MessageParser<ChessRogueEnterCellScRsp>(() => new ChessRogueEnterCellScRsp());

		// Token: 0x04000A48 RID: 2632
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000A49 RID: 2633
		public const int CellIdFieldNumber = 7;

		// Token: 0x04000A4A RID: 2634
		private uint cellId_;

		// Token: 0x04000A4B RID: 2635
		public const int RetcodeFieldNumber = 1;

		// Token: 0x04000A4C RID: 2636
		private uint retcode_;

		// Token: 0x04000A4D RID: 2637
		public const int RogueCurrentInfoFieldNumber = 9;

		// Token: 0x04000A4E RID: 2638
		private ChessRogueCurrentInfo rogueCurrentInfo_;

		// Token: 0x04000A4F RID: 2639
		public const int StageInfoFieldNumber = 11;

		// Token: 0x04000A50 RID: 2640
		private ChessRogueInfo stageInfo_;

		// Token: 0x04000A51 RID: 2641
		public const int InfoFieldNumber = 8;

		// Token: 0x04000A52 RID: 2642
		private ChessRogueGameInfo info_;
	}
}
